package common.result;

import lombok.Getter;

@Getter
public enum CodeEnum {
    SUCCESS(20000, "操作成功"), //成功范湖
    SERVER_ERROR(20001, "服务器错误"),//服务器错误
    NO_MISSION(20002, "权限不够"),//没有权限
    CHECK_CODE_ERROR(20003, "验证码错误,或验证码过期"),
    MAIL_FORMATE_ERROR(20004, "邮箱格式错误"),
    Fail(20004, "无此记录");
    private int code;
    private String message;

    CodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
